/********************************************
 * 功能说明: 
 * 模块名称: 
 * 系统名称: 
 * 软件版权: Frank
 * 系统版本: 1.0.0
 * 开发人员: Frank
 * 开发时间: 2020/1/9 18:31
 * 审核人员: 
 * 相关文档: 
 * 修改记录: 修改日期 修改人员 修改说明
 *********************************************/
package com.spring.arch.message.client;

import com.spring.arch.common.dto.result.ResultDTO;
import com.spring.arch.common.dto.result.ResultDTO;
import com.spring.arch.message.dto.VerificationCheckParam;
import com.spring.arch.message.dto.VerificationSendParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;

/**
 * 验证码客户端
 *
 * @author Frank
 * @version 1.0.0.1
 * @since 2020/1/9 18:31
 */
@FeignClient(value = "${service.message}", path = "/message/verification")
public interface VerificationClient {

    /**
     * 发送验证码
     */
    @PostMapping(value = "send")
    ResultDTO<Void> sendVerificationCode(@RequestBody @Valid VerificationSendParam param);


    /**
     * 验证验证码
     */
    @PostMapping(value = "check")
    ResultDTO<Void> checkVerificationCode(@RequestBody @Valid VerificationCheckParam param);
}
